package com.gyy.faq.dao;

import com.gyy.faq.pojo.dto.FaqProblemDTO;
import com.gyy.faq.pojo.po.FaqProblemPO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FaqProblemDAO {
	int deleteByPrimaryKey(Integer id);

	int insert(FaqProblemPO record);

	int insertSelective(FaqProblemPO record);

	FaqProblemPO selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(FaqProblemPO record);

	int updateByPrimaryKey(FaqProblemPO record);


	List<FaqProblemPO> selectHotProblem();

	List<FaqProblemPO> selectProblemList(FaqProblemDTO faqProblemDTO);

	int selectProblemTotal(FaqProblemDTO faqProblemDTO);

	void updateProblemClickCount(Integer id);
}